package office.bo.workflow.impl;

import java.util.Iterator;
import java.util.List;

import office.bo.workflow.ITransfer;
import platform.common.bo.PersistenceBO;

public class Transfer extends PersistenceBO  implements ITransfer {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String roleName;
	
	private String code;

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public static String listToString(List<Transfer> transferList){
		StringBuffer stringBuffer = new StringBuffer();
		for (Iterator<Transfer> iterator = transferList.iterator(); iterator.hasNext();) {
			Transfer transfer = (Transfer) iterator.next();
			stringBuffer.append(transfer.getRoleName());
			if(iterator.hasNext()){
				stringBuffer.append(",");
			}
		}
		return stringBuffer.toString();
	}

}
